package com.ruiysoft.controller.statement.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * StatementDetailVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-01-05T11:49:17.029+08:00")

public class StatementDetailVo   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("money")
  private String money = null;

  @JsonProperty("shareMoney")
  private String shareMoney = null;

  @JsonProperty("summary")
  private String summary = null;

  @JsonProperty("date")
  private Long date = null;

  @JsonProperty("type")
  private Integer type = null;

  @JsonProperty("isArrival")
  private Boolean isArrival = null;

  @JsonProperty("voucherPath")
  private String voucherPath = null;

  @JsonProperty("voucherNo")
  private String voucherNo = null;

  @JsonProperty("recordList")
  @Valid
  private List<StatementRecordVo> recordList = null;

  public StatementDetailVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public StatementDetailVo money(String money) {
    this.money = money;
    return this;
  }

  /**
   * 金额
   * @return money
  **/
  @ApiModelProperty(example = "1", value = "金额")


  public String getMoney() {
    return money;
  }

  public void setMoney(String money) {
    this.money = money;
  }

  public StatementDetailVo shareMoney(String shareMoney) {
    this.shareMoney = shareMoney;
    return this;
  }

  /**
   * 分润金额
   * @return shareMoney
  **/
  @ApiModelProperty(example = "1", value = "分润金额")


  public String getShareMoney() {
    return shareMoney;
  }

  public void setShareMoney(String shareMoney) {
    this.shareMoney = shareMoney;
  }

  public StatementDetailVo summary(String summary) {
    this.summary = summary;
    return this;
  }

  /**
   * 简介
   * @return summary
  **/
  @ApiModelProperty(example = "1", value = "简介")


  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }

  public StatementDetailVo date(Long date) {
    this.date = date;
    return this;
  }

  /**
   * 记账时间戳
   * @return date
  **/
  @ApiModelProperty(example = "1", value = "记账时间戳")


  public Long getDate() {
    return date;
  }

  public void setDate(Long date) {
    this.date = date;
  }

  public StatementDetailVo type(Integer type) {
    this.type = type;
    return this;
  }

  /**
   * 类型（1，收入，2，支出）
   * @return type
  **/
  @ApiModelProperty(example = "1", value = "类型（1，收入，2，支出）")


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public StatementDetailVo isArrival(Boolean isArrival) {
    this.isArrival = isArrival;
    return this;
  }

  /**
   * 状态（false，入账，true，到账）
   * @return isArrival
  **/
  @ApiModelProperty(example = "true", value = "状态（false，入账，true，到账）")


  public Boolean isIsArrival() {
    return isArrival;
  }

  public void setIsArrival(Boolean isArrival) {
    this.isArrival = isArrival;
  }

  public StatementDetailVo voucherPath(String voucherPath) {
    this.voucherPath = voucherPath;
    return this;
  }

  /**
   * 凭证图片
   * @return voucherPath
  **/
  @ApiModelProperty(example = "1", value = "凭证图片")


  public String getVoucherPath() {
    return voucherPath;
  }

  public void setVoucherPath(String voucherPath) {
    this.voucherPath = voucherPath;
  }

  public StatementDetailVo voucherNo(String voucherNo) {
    this.voucherNo = voucherNo;
    return this;
  }

  /**
   * 凭证号（微信提现流水）
   * @return voucherNo
  **/
  @ApiModelProperty(example = "l128398278", value = "凭证号（微信提现流水）")


  public String getVoucherNo() {
    return voucherNo;
  }

  public void setVoucherNo(String voucherNo) {
    this.voucherNo = voucherNo;
  }

  public StatementDetailVo recordList(List<StatementRecordVo> recordList) {
    this.recordList = recordList;
    return this;
  }

  public StatementDetailVo addRecordListItem(StatementRecordVo recordListItem) {
    if (this.recordList == null) {
      this.recordList = new ArrayList<StatementRecordVo>();
    }
    this.recordList.add(recordListItem);
    return this;
  }

  /**
   * 记录时间
   * @return recordList
  **/
  @ApiModelProperty(value = "记录时间")

  @Valid

  public List<StatementRecordVo> getRecordList() {
    return recordList;
  }

  public void setRecordList(List<StatementRecordVo> recordList) {
    this.recordList = recordList;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatementDetailVo statementDetailVo = (StatementDetailVo) o;
    return Objects.equals(this.id, statementDetailVo.id) &&
        Objects.equals(this.money, statementDetailVo.money) &&
        Objects.equals(this.shareMoney, statementDetailVo.shareMoney) &&
        Objects.equals(this.summary, statementDetailVo.summary) &&
        Objects.equals(this.date, statementDetailVo.date) &&
        Objects.equals(this.type, statementDetailVo.type) &&
        Objects.equals(this.isArrival, statementDetailVo.isArrival) &&
        Objects.equals(this.voucherPath, statementDetailVo.voucherPath) &&
        Objects.equals(this.voucherNo, statementDetailVo.voucherNo) &&
        Objects.equals(this.recordList, statementDetailVo.recordList);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, money, shareMoney, summary, date, type, isArrival, voucherPath, voucherNo, recordList);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatementDetailVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    money: ").append(toIndentedString(money)).append("\n");
    sb.append("    shareMoney: ").append(toIndentedString(shareMoney)).append("\n");
    sb.append("    summary: ").append(toIndentedString(summary)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    isArrival: ").append(toIndentedString(isArrival)).append("\n");
    sb.append("    voucherPath: ").append(toIndentedString(voucherPath)).append("\n");
    sb.append("    voucherNo: ").append(toIndentedString(voucherNo)).append("\n");
    sb.append("    recordList: ").append(toIndentedString(recordList)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

